const crypto = require('crypto');

window = {}
window.navigator = {
    userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36'
}

function md5(data) {
    return crypto.createHash('md5').update(String(data)).digest('hex');
}

function z_i() {
    var t = undefined;
    var e = (t || window.navigator.userAgent || Object(a_m)(4, 8)) + (new Date).getTime() + Object(a_m)(4, 8);
    return 'X/'.concat(md5(e))
}

function a_m(t, e, n) {
    var r, o = "";
    void 0 === t && (t = 6),
    "string" == typeof e && (n = e),
        r = e && "number" == typeof e ? Math.round(Math.random() * (e - t)) + t : t,
        n = n || "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
    for (var i = 0; i < r; i++) {
        var a = Math.round(Math.random() * (n.length - 1));
        o += n.substring(a, a + 1)
    }
    return o
}